﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="CYPlayer.CompactWindow"
        Title="JustPlayer" Height="273.066" Width="222.4" Closing="CompactWindow_Closing" Icon="/CYPlayer;component/appicon.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="5*"/>
            <RowDefinition Height="2*"/>
            
        </Grid.RowDefinitions>
        <Grid Grid.Row="1" Background="{DynamicResource MyBackTitleBrush}">
            <Grid.ColumnDefinitions>
            	<ColumnDefinition Width="0.181*" />
            	<ColumnDefinition Width="0.626*" />
            	<ColumnDefinition Width="0.193*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
            	<RowDefinition Height="0.252*" />
            	<RowDefinition Height="0.748*" />
            </Grid.RowDefinitions>
            <Slider BorderBrush="Black" Style="{StaticResource MySongSlider}" Height="0.267" IsManipulationEnabled="True" 
                    MinHeight="20" VerticalAlignment="Top" Grid.Column="1" Margin="-0.072,0,-0.073,0" d:LayoutOverrides="VerticalAlignment" />
            <StackPanel Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" 
                        Orientation="Horizontal" VerticalAlignment="Center"
                        >
                <Button Height="40" Margin="1" VerticalAlignment="Center" Width="20">
                    <Path Fill="White" Data="M0,5 5,0 5,5 10,0 10,10 5,5 5,10 0,5"
                              HorizontalAlignment="Center" VerticalAlignment="Center"
                              Stroke="Black"/>
                </Button>
                <Button Height="40" Margin="1" VerticalAlignment="Center" Width="30">
                    <Rectangle Height="15" Width="15" Fill="White" Stroke="Black"/>
                </Button>
                <Button Height="40" Margin="1" VerticalAlignment="Center" Width="40">
                    <Path Data="M 0,0 20,12 0,24 0,0" Fill="White"
                              Stroke="Black"
                              HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Button>
                <Button Height="40" Margin="1" VerticalAlignment="Center" Width="20">
                    <Path Fill="White" HorizontalAlignment="Center" VerticalAlignment="Center"
                              Data="M0,0 5,5 5,0 10,5 5,10 5,5 0,10 V 0 "
                              Stroke="Black"/>
                </Button>
            </StackPanel>
            <TextBlock Grid.Column="0" x:Name="timerblock" 
                       TextAlignment="Center" FontSize="9.333" Text="00:00:00" Foreground="Black"/>
            <!--<Polygon Fill="Navy" Points="12,14 12,8 8,4 0,12 0,0 12,0 4,8 6,10 6,14 5,16 8,18 11,16" 
                         Stroke="Black" />-->
            <Button Grid.Row="1" Height="27.067" 
                    Padding="0,4,0,0" VerticalAlignment="Top" x:Name="mnMode_btn" Click="MnModeBtnClick" Margin="8,8,1.076,0" d:LayoutOverrides="GridBox">
                <Path Fill="White" Stroke="Black" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Path.Data>
                        <PathGeometry>
                            <PathFigure IsClosed="True" StartPoint="0,0">
                                <LineSegment Point="12,0"/>
                                <LineSegment Point="9,3"/>
                                <BezierSegment Point1="6,7" Point2="17,6" Point3="12,17"/>
                                <LineSegment Point="7,17"/>
                                <BezierSegment Point1="5,17" Point2="10,11" Point3="4,8"/>
                                <LineSegment Point="0,12"/>
                            </PathFigure>
                        </PathGeometry>
                    </Path.Data>
                </Path>
            </Button>
            <Button Grid.Column="2" Margin="4.073,8,7.264,15.597"  Grid.Row="1" x:Name="PLwin_btn" Click="PLwinBtnClick" d:LayoutOverrides="GridBox">
                <Path Stroke="Black" StrokeThickness="1" Fill="White" 
                          HorizontalAlignment="Center" VerticalAlignment="Center"
                          Data="M0,0 4,0 4,4 0,4 0,0 M6,0 21,0 21,4 6,4 6,0 
                                    M0,6 0,10 4,10 4,6 0,6 M6,6 21,6 21,10 6,10 6,6
                                    M0,12 0,16 4,16 4,12 0,12 M6,12 21,12 21,16 6,16 6,12"></Path>
            </Button>
            <TextBlock Grid.Column="2" x:Name="timerblock_Copy" 
            	TextAlignment="Center" FontSize="9.333" Text="00:00:00" Margin="0.073,0,0,0" Foreground="{DynamicResource MyTextGradientLightResource}"/>
        </Grid>
        <DockPanel Grid.Row="0" Background="{DynamicResource MyBackTitleBrush}">
            <Border DockPanel.Dock="Top" Background="MediumTurquoise" Height="30">
            <TextBlock x:Name="sngName_tb" TextAlignment="Center" FontFamily="Segoe UI" 
                       FontSize="17" Foreground="{DynamicResource MyTextGradientBrush}" Text="Song name" Background="Black" />
            </Border>
            <Grid Width="115.4">
            	<Grid.RowDefinitions>
            		<RowDefinition Height="0.772*"/>
            		<RowDefinition Height="0.123*"/>
            		<RowDefinition Height="0.105*"/>
            	</Grid.RowDefinitions>
            	<Image Source="Unknown.png" Clip="M0,0 115,0 115,140 0,140" Stretch="UniformToFill" StretchDirection="DownOnly" Grid.RowSpan="3" 
                         />
            </Grid>
        </DockPanel>
    </Grid>
</Window>
